/**
 * 
 */
package org.cuatrovientos.erp.model;


import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;

/**
 * @author natalia
 *
 */
public class Sale {
	
	@Min(value=1,message="{sale.id.error}")
	private int id;
	
	@NotNull(message="{sale.name.error}")
	private String name;
	
	@Past(message="{sale.date.error}")
	private java.sql.Date date;
	
	@Min(value=1,message="{sale.message.error}")
	private int idEmployee;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the date
	 */
	public java.sql.Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(java.sql.Date date) {
		this.date = date;
	}

	/**
	 * @return the idEmployee
	 */
	public int getIdEmployee() {
		return idEmployee;
	}

	/**
	 * @param idEmployee the idEmployee to set
	 */
	public void setIdEmployee(int idEmployee) {
		this.idEmployee = idEmployee;
	}
}
